<template>
	<view>
		<u-navbar leftText="返回" :safeAreaInsetTop="true" height="44px" :bgColor="settings">
			<view class="u-nav-slot" slot="left"
				style="display: flex;align-items: center;justify-content: space-between;width: 90%;">
				<image
					:src="user"
					style="width: 35px;height: 35px;border-radius: 50px;margin-right: 30rpx;" @click="turn()"></image>
				<u-search :showAction="false" :animation="false" @focus="native()"></u-search>
			</view>
		</u-navbar>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				user: uni.getStorageSync("user").picUrl,
				show: false,
				settings: uni.getStorageSync("settings").navColor,
				tobobj: {
					color: uni.getStorageSync("settings").navFontColor
				},

			}
		},
		methods: {
			native() {
				uni.navigateTo({
					url: '/pagesa/search/search',
				})
			},
			turn() {
				uni.navigateTo({
					url: '/pagesa/sidepage/sidepage',
				})
			}

		}

	}
</script>
